package day0717;

public class Test2 {

    public static void main(String[] args) {
        //1800   2025
        int year=1800;
        while(year <= 2025){
            if(year%400==0 || (year%4==0&& year%100!=0)){
                System.out.println(year);
            }
            year++;
        }
    }

}
